<?php session_start(); ?>
<?php include "libfunc.php";?>
<?php if (!empty($_SESSION['admUser']) && !empty($_SESSION['admPass'])) { 

  include("libfunc.php");
  
  $id = $_GET[id];
  
  $link = koneksi_db();
  $sql = "UPDATE dtkategori SET dihapus='Y' WHERE Id_kategori=$id";
  $res = mysql_query($sql,$link);
  
  header('location:view_kategori.php');

}else{
  echo "<script language='javascript'>alert('Silakan Sign In Terlebih Dahulu')</script>";
  echo "<script language='javascript'>window.location = '../admin/'</script>";
}